package com.centriole.service.workflow.service;

import com.centriole.service.workflow.entity.Function;

import java.util.List;


/**方法Service
 * @author wukai
 *
 */
public interface FunctionService {
	/**新增或编辑
	 * @param function
	 */
	public void insertOrEdit(Function function);
	/**根据名称查询
	 * @param name
	 * @return
	 */
	public List<Function> select(String name);
	/**根据ID查询
	 * @param id
	 * @return
	 */
	public Function selectById(String id);
	/**逻辑删除
	 * @param id
	 */
	public void logicDelete(String id);
	/**物理删除
	 * @param id
	 */
	public void delete(String id);
	/**根据流程定义key查询
	 * @param processKey
	 * @return
	 */
	public List<Function> selectByProcessKey(String processKey);


	List<Function> findAll();
}
